package com.cskaoyan.shopping.service.remote;

import com.cskaoyan.mall.api.SearchProductService;
import com.cskaoyan.mall.dto.AllItemResponse;
import com.cskaoyan.mall.dto.ItemDto;
import com.cskaoyan.shopping.service.IProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName: SearchProductServiceImpl
 * @Description:
 * @Author: 瞳
 * @Date: 2022/6/27 21:29
 */

@RestController
public class SearchProductServiceImpl implements SearchProductService {

    @Autowired
    IProductService productService;

    @Override
    public AllItemResponse getAllProductItem() {
        AllItemResponse allItems = productService.getAllItems();
        return allItems;
    }
}